Range

Function

This API is used to get parameter range for Channel > Wireless Camera page.

Note:

The Range provides reference information for client UI input limits and API request limits. When sending Get and Set requests, the parameters must be strictly limited according to the Range, otherwise the request may be rejected by the device.

Request Message

None.

Sample:

POST /API/ChannelConfig/WirelessCamera/Range HTTP/1.1
{
    "version": "1.0",
    "data": {}
}

Response Message

Parameter Description

Table 1

ParameterRangeTypeDescription
channel_infoJSON ObjectJSON show as follow Table 2
page_type"ChannelConfig"string

Table 2

ParameterRangeTypeDescription
CH1Json ObjectJSON show as follow Table 3
Json Object
IP_CH1Json Object
Json Object
WIFI_CH1Json Object
Json Object

Table 3

ParameterRangeTypeDescription
channel_nameMax length: 31bytestringChannel name
software_versionMax length: 40bytestringWireless channel version number, read only.
switchbooltrue: enable
false: disable
This switch can only be turned off. (from true to false)
chn_index"CH1"..."CHx"
"IP_CH1"..."IP_CHx"
"WIFI_CH1"..."WIFI_CHx"
string
page"chn_wireChn"string
battery0-100intElectrical value
post_recording"Continuous" "10" "20" "30"stringRecode delay time
pair_state-1 - 7intMatching status of wireless Ipc.

Tips:

The response message of the Range request may not contain all the fields in the above table, and the fields not included indicate that the device does not support this parameter configuration.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
	"result": "success",
	"data": {
		"channel_max": 8,
		"channel_info": {
			"type": "object",
			"items": {
				"CH1": {
					"type": "object",
					"items": {
						"channel_name": {
							"type": "string",
							"min_len": 0,
							"max_len": 31
						},
						"software_version": {
							"type": "string",
							"min_len": 0,
							"max_len": 40
						},
						"pair_state": {
							"type": "int32",
							"items": [
								2
							]
						}
					}
				},
				"CH2": {
					"type": "object",
					"items": {
						"channel_name": {
							"type": "string",
							"min_len": 0,
							"max_len": 31
						},
						"software_version": {
							"type": "string",
							"min_len": 0,
							"max_len": 40
						},
						"pair_state": {
							"type": "int32",
							"items": [
								2
							]
						}
					}
				},
				"CH3": {
					"type": "object",
					"items": {
						"channel_name": {
							"type": "string",
							"min_len": 0,
							"max_len": 31
						},
						"software_version": {
							"type": "string",
							"min_len": 0,
							"max_len": 40
						},
						"pair_state": {
							"type": "int32",
							"items": [
								2
							]
						}
					}
				},
				"CH4": {
					"type": "object",
					"items": {
						"channel_name": {
							"type": "string",
							"min_len": 0,
							"max_len": 31
						},
						"software_version": {
							"type": "string",
							"min_len": 0,
							"max_len": 40
						},
						"pair_state": {
							"type": "int32",
							"items": [
								2
							]
						}
					}
				},
				"CH5": {
					"type": "object",
					"items": {
						"channel_name": {
							"type": "string",
							"min_len": 0,
							"max_len": 31
						},
						"software_version": {
							"type": "string",
							"min_len": 0,
							"max_len": 40
						},
						"pair_state": {
							"type": "int32",
							"items": [
								2
							]
						}
					}
				},
				"CH6": {
					"type": "object",
					"items": {
						"channel_name": {
							"type": "string",
							"min_len": 0,
							"max_len": 31
						},
						"software_version": {
							"type": "string",
							"min_len": 0,
							"max_len": 40
						},
						"pair_state": {
							"type": "int32",
							"items": [
								3
							]
						}
					}
				}
			}
		}
	}
}

Error Code

See Response Messages Body and Common error_code for more information.